<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=request.getContextPath() %>/">
<title></title>
		<link rel="stylesheet" href="css/change.css" />
		<script type="text/javascript" src="js/jquery-1.x.js"></script>
		<script type="text/javascript" src="js/changeH.js"></script>
	</head>
	<body>
	
	
	
	
	<div id="pc">

       	 <div class="head">


        	    <div class="navBox">
            

                	<!-- 导航栏 -->

				
					<div class="logo">
                    						<input type="image" src="img/headlogo.png" style="margin-left:200px;width:300px;height:80px"/>
                    		             	</div>
	
	                <div class="nav">
	                
                
                	
                

	                 <!--    <div class="an1">
	                        <a class="esta2" href="admin/index.jsp">在线投票系统</a>
	                    </div> -->

	                    <ul>
	                        <!-- <li class="seleLi2" >
	
	                            <a href="./index.html">在线投票系统</a>
	
	                        </li> -->
	
	                        <li id="din">
	
	                            <a href="/VoteWeb/articleListServlet">投票列表</a>
	
	                        </li>
	
	                        <li>
	
	                            <a href="admin/addNewtp.jsp">添加新投票</a>
	
	                        </li>
	
	                        <li class="seleLi">
	
	                            <a href="articleListServlet?flag=me">维护</a>
	
	                        </li>

							<li>
								<a href="Statistics">统计分析</a>
							</li>
	
	                      


	
	                    </ul>

	                    <div class="an">
	                        <a class="esta" href="javascript:(0)">你好，${sessionScope.username}</a>                     
	                    </div >
	                    
	                    <div class="an3"><a href="/VoteWeb/logout">注销</a></div>

                	</div>
               

            </div>


        </div>


		  <div class="third">
				<div class="add">修改投票</div>
				<form action="changeSuccessServlet" method="post" onsubmit="return check()">
					<table style="width: 480px">
						<tr>
							<td>投票内容：</td>
							<td><input type="text" name="title" class="bb" value="${title}" readonly="readonly"/></td>
						</tr>
						<tr>
							<td>投票类型：</td>
							<td align="left">
								<input type="radio" name="type" value="dan" checked="checked">单选
								<input type="radio" name="type" value="duo">多选
							</td>
						</tr>
						<tbody id="addTr">
						<tr>
							<td>投票选项：</td>
							<td><input type="text" name="option" class="bb" value="${list[0]}"/></td>
						</tr>
						<tr>
							<td></td>
							<td><input type="text" name="option" class="bb" value="${list[1]}"/></td>
						</tr>
						<c:forEach items="${ylist}"  var="y">
							<tr>
							<td></td>
							<td><input type="text" class="bb" name="option" value="${y}"/></td>
							<td onClick="getDel(this)"><a>删除</a></td>
							</tr>
						</c:forEach>
						
						</tbody>
						<tr>
							<td></td>
							<td align="left">
								<input type="image" src="img/button_submit.gif" style="vertical-align:middle" />
								&nbsp;&nbsp;&nbsp;
								<a  id="getStr">增加选项</a>&nbsp;&nbsp;&nbsp;&nbsp;
								<a href="admin/index.jsp">取消操作</a>
							</td>
						</tr>
					</table>
					<input type="hidden" id="articleid" name="articleid" value="${articleid}"/>
				</form>
			</div>
      

		<!-- <div class="main">
                
                        
            <div class="mid">                
                <iframe src="admin/tpList.jsp" width="1500" height="700" id="win" name="mainframe"    onload="Javascript:SetWinHeight(this)" frameborder="0" scrolling="no" /></iframe>                    
            </div>            
            <div class="line2"></div>
            <div class="end">
                青软实训 &copy; 版权所有
            </div>            
        </div>  -->   

    </div>
	
	
	
		
			<div class="bottom"></div>
			
			<script type="text/javascript" src="../js/jquery-1.x.js"></script>
			<script type="text/javascript" src="../js/changeH.js"></script>
			
			
	</body>
</html>